//
//  DLMachineNormalTC.h
//  delongzhitou
//
//  Created by Mr.Wang on 2018/11/26.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DLMachineModel;


NS_ASSUME_NONNULL_BEGIN

typedef NS_OPTIONS(NSInteger, SynthesizeType) {
    NomalType           = 5,    //Normal TTS
    UriType             = 6,    //URI TTS
};

//state of TTS
typedef NS_OPTIONS(NSInteger, Status) {
    NotStart            = 0,
    Playing             = 2,
    Paused              = 4,
};


@interface DLMachineNormalTC : UITableViewCell<IFlySpeechSynthesizerDelegate>

/**
 长短文本
 */
@property (nonatomic, strong) DLMachineModel *normalModel;



//讯飞的
@property (nonatomic, strong) IFlySpeechSynthesizer *iFlySpeechSynthesizer;

@property (nonatomic, strong) PcmPlayer *audioPlayer;

@property (nonatomic, assign) Status state;

@property (nonatomic, assign) SynthesizeType synType;

@property (nonatomic, assign) BOOL hasError;

@property (nonatomic, assign) BOOL isCanceled;

@end

NS_ASSUME_NONNULL_END
